#include <cgic.h>

//cgic接受请求数据cgiQueryString
extern char *cgiQueryString;

int cgiMain()
{ 
    char name[100];
    char password[100];
    cgiFormString("name",name,100);
    cgiFormString("password",password,100);
    cgiHeaderContentType("text/html");
    cgiHeaderContentType("text/html");
	fprintf(cgiOut, "<HTML><HEAD> <meta charset=\"UTF-8\"> \n");
	fprintf(cgiOut, "<TITLE>测试1</TITLE></HEAD>\n");
    fprintf(cgiOut, "<BODY><H1>数据=%s,%s</H1>\n",name,password);
	fprintf(cgiOut, "<BODY><H1>1111测试,请求数据=%s</H1>\n",cgiQueryString);
    fprintf(cgiOut, "</BODY></HTML>");
    return 0;
}